package com.yuyou.tas.report.service.impl;

import com.yuyou.tas.report.mapper.ExamModelRangeMapper;
import com.yuyou.tas.report.service.IExamModelRangeService;
import com.yuyou.tas.service.api.report.entity.ExamModelRange;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ExamModelRangeServiceImpl implements IExamModelRangeService {

    @Autowired
    private ExamModelRangeMapper examModelRangeMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return examModelRangeMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(ExamModelRange record) {
        return examModelRangeMapper.insert(record);
    }

    @Override
    public ExamModelRange selectByPrimaryKey(Long id) {
        return examModelRangeMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(ExamModelRange record) {
        return examModelRangeMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public List<ExamModelRange> getByOrganId(Long organId) {
        return examModelRangeMapper.getByOrganId(organId);
    }

	@Override
	public int deleteByClassId(Long lessonClassId, Long authOrganizationId) {
		return examModelRangeMapper.deleteByClassId(lessonClassId, authOrganizationId);
	}

    @Override
    public Integer countByExamModelId(Long modelId) {
        return examModelRangeMapper.countByExamModelId(modelId);
    }
}